<%@ taglib uri="/WEB-INF/vectrics.tld" prefix="vectrics" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>


<%@ page import="org.vectrics.user.*" %>
<%@ page import="org.vectrics.provider.*" %>
<%@ page import="org.vectrics.recruiter.config.RecruitConfig" %>
<%@ page import="org.vectrics.struts.*" %>

<%
	Request vectricsRequest = HttpRequestConverter.convertRequest(request);
	String logOffLink = request.getContextPath() + "/logoff.do";
	Person person = CoreServiceLocator.getUserAuthService().getAuthorizedPerson(vectricsRequest);
	boolean allowTasks = CoreServiceLocator.getConfiguration().getAllowTasks();
	String userId = person.getId().toString();

	boolean showCalendar = RecruitConfig.getRecruitInstance().getCalendarEnabled();
%>

<table width="100%">
	<tr>
		<td valign="top">
			<table width="450" cellpadding="3" cellspacing="3">
				<tr>
					<td>
						<vectrics:adminJobPostingsSummary/>
					<td>
				</tr>
				
				<tr>
					<td>
						<vectrics:adminInterviewSummary/>
					<td>
				</tr>
			
	<% if (allowTasks) { %>		
				<tr>
					<td class="mainFormBg1">
						<h3><bean:message key="heading.tasks.for.me"/></h3>
						<vectrics:taskList personId="<%=userId%>" />	
					</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
				</tr>
    <% } %>				
    
    <% if (false) { %>
				<tr>
					<td class="mainFormBg1">
						<h3><bean:message key="heading.scheduled.interviews"/></h3>
						<vectrics:scheduledInterviews userId="<%=userId%>" />	
					</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
				</tr>
				
				<tr>
					<td class="mainFormBg1">
						<h3><bean:message key="heading.active.jobs"/></h3>
						<vectrics:myJobList admin="true" myJobs="true"/>	
					</td>
				</tr>
  <% } %>
	
			</table>
		</td>
	</tr>
</table>


<% if (showCalendar) { %>
      <vectrics:calendar timeMode="day" detailAlign="right"/>
<% }%>
